/*
 * XML Type:  RecurringPaymentTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringPaymentTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringPaymentTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringPaymentTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.RecurringPaymentTransactionResponse
{
    
    public RecurringPaymentTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RECPMTRS$0 = 
        new javax.xml.namespace.QName("", "RECPMTRS");
    private static final javax.xml.namespace.QName RECPMTMODRS$2 = 
        new javax.xml.namespace.QName("", "RECPMTMODRS");
    private static final javax.xml.namespace.QName RECPMTCANCRS$4 = 
        new javax.xml.namespace.QName("", "RECPMTCANCRS");
    
    
    /**
     * Gets the "RECPMTRS" element
     */
    public net.ofx.types.x2003.x04.RecurringPaymentResponse getRECPMTRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentResponse)get_store().find_element_user(RECPMTRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECPMTRS" element
     */
    public boolean isSetRECPMTRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECPMTRS$0) != 0;
        }
    }
    
    /**
     * Sets the "RECPMTRS" element
     */
    public void setRECPMTRS(net.ofx.types.x2003.x04.RecurringPaymentResponse recpmtrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentResponse)get_store().find_element_user(RECPMTRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringPaymentResponse)get_store().add_element_user(RECPMTRS$0);
            }
            target.set(recpmtrs);
        }
    }
    
    /**
     * Appends and returns a new empty "RECPMTRS" element
     */
    public net.ofx.types.x2003.x04.RecurringPaymentResponse addNewRECPMTRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentResponse)get_store().add_element_user(RECPMTRS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "RECPMTRS" element
     */
    public void unsetRECPMTRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECPMTRS$0, 0);
        }
    }
    
    /**
     * Gets the "RECPMTMODRS" element
     */
    public net.ofx.types.x2003.x04.RecurringPaymentModResponse getRECPMTMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentModResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentModResponse)get_store().find_element_user(RECPMTMODRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECPMTMODRS" element
     */
    public boolean isSetRECPMTMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECPMTMODRS$2) != 0;
        }
    }
    
    /**
     * Sets the "RECPMTMODRS" element
     */
    public void setRECPMTMODRS(net.ofx.types.x2003.x04.RecurringPaymentModResponse recpmtmodrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentModResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentModResponse)get_store().find_element_user(RECPMTMODRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringPaymentModResponse)get_store().add_element_user(RECPMTMODRS$2);
            }
            target.set(recpmtmodrs);
        }
    }
    
    /**
     * Appends and returns a new empty "RECPMTMODRS" element
     */
    public net.ofx.types.x2003.x04.RecurringPaymentModResponse addNewRECPMTMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentModResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentModResponse)get_store().add_element_user(RECPMTMODRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "RECPMTMODRS" element
     */
    public void unsetRECPMTMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECPMTMODRS$2, 0);
        }
    }
    
    /**
     * Gets the "RECPMTCANCRS" element
     */
    public net.ofx.types.x2003.x04.RecurringPaymentCancelResponse getRECPMTCANCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentCancelResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentCancelResponse)get_store().find_element_user(RECPMTCANCRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECPMTCANCRS" element
     */
    public boolean isSetRECPMTCANCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECPMTCANCRS$4) != 0;
        }
    }
    
    /**
     * Sets the "RECPMTCANCRS" element
     */
    public void setRECPMTCANCRS(net.ofx.types.x2003.x04.RecurringPaymentCancelResponse recpmtcancrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentCancelResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentCancelResponse)get_store().find_element_user(RECPMTCANCRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringPaymentCancelResponse)get_store().add_element_user(RECPMTCANCRS$4);
            }
            target.set(recpmtcancrs);
        }
    }
    
    /**
     * Appends and returns a new empty "RECPMTCANCRS" element
     */
    public net.ofx.types.x2003.x04.RecurringPaymentCancelResponse addNewRECPMTCANCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringPaymentCancelResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringPaymentCancelResponse)get_store().add_element_user(RECPMTCANCRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "RECPMTCANCRS" element
     */
    public void unsetRECPMTCANCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECPMTCANCRS$4, 0);
        }
    }
}
